﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiXinSDK.MP.Model
{
	public class TemplateModel : ResponseModel
	{
		[JsonProperty("template_id")]
		public string TemplateId { get; set; }
	}

	public class TemplateMsgModel
	{
		[JsonProperty("touser")]
		public string ToUser { get; set; }

		[JsonProperty("template_id")]
		public string TemplateId { get; set; }

		[JsonProperty("url")]
		public string Url { get; set; }

		[JsonProperty("topcolor")]
		public string TopColor { get; set; }

		[JsonProperty("data")]
		public Dictionary<string, ClortText> Data { get; set; }

	}

	public class ClortText
	{
		public ClortText()
		{
			Color = "#000000";
		}
		[JsonProperty("value")]
		public string Text { get; set; }

		[JsonProperty("color")]
		public string Color { get; set; }
	}
}
